package com.woniuxy.util;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author HP
 * @version 1.0
 * @project
 * @description
 * @date 2024/4/7 15:29:51
 */
@AllArgsConstructor
@Getter
public enum ResponseEnum {
    SUCCESS(200,"ok"),
    FAIL(500,"fail"),
    LOGIN_FAIL(2000,"登录失败"),
    NO_LOGIN(2001,"未登录"),
    product_code(2009,"FAST_INSTANT_TRADE_PAY"),

    NO_AUTH(2002,"权限不足"),
    EMPTY(2003,"内容为空"),

    NO_TOKEN(2004,"没有token"),
    MANDATORY_EMPTY(2005,"必选项为空"),
    DRUGSTOCK_NOT_ENOUGH(2006,"药品库存不足"),
    PARAM_ERROR(2008,"params error"),//参数异常
    RATE_LIMIT(2007,"请求过于频繁，请稍后再试。"),
    SCHEMA_REPEAT(2009,"数据库名称重复"),
    SCHEMA_ERROR(20001,"初始化数据库失败，请稍后再试");






    private Integer code;
    private String msg;

}
